import numpy as np
import cv2
img=np.zeros((400,500,3),np.uint8)
cv2.line(img,(0,0),(255,255),(55,255,155),5)
cv2.rectangle(img,(40,160),(150,250),(0,0,255),2)
cv2.circle(img,(200,100),50,(255,255,0),-1)
cv2.ellipse(img,(220,320),(100,50),20,0,360,(255,0,255),2)
pts=np.array([[370,190],[440,300],[410,120],[380,300],[450,190],[190,300]])
cv2.polylines(img,[pts],True,(255,255,255),5)
font=cv2.FONT_HERSHEY_SIMPLEX
cv2.putText(img,'hello llx!',(300,100),font,1,(255,255,0),2)
cv2.imshow("image",img)
cv2.retval=cv2.waitKey()